package com.qf.client;

import com.qf.pojo.resp.BaseResp;
import com.qf.pojo.vo.Orders;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.text.ParseException;

@FeignClient(serviceId = "take-out-orders")
public interface OrdersClient {

    @PostMapping(value = "/orders/add")
    public BaseResp add(@RequestBody Orders orders);

    @PostMapping("/orders/update")
    public BaseResp update(@RequestBody Orders orders);

    @PostMapping("/orders/findByOnumber")
    public BaseResp findByOnumber(@RequestBody String oNumber);
}
